package com.sinping.qh.repository.mongo.lab;

import com.sinping.qh.domain.lab.LabInspectItemDomain;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 *
 * @author jiahuaiqing
 * @create 2018/6/1
 */
@Deprecated
public interface LabInspectItemRepository extends MongoRepository<LabInspectItemDomain,String> {
    //1级
    LabInspectItemDomain findByItemNameAndItemCategoryAndItemSubcategory(String name,String category,String subCategory);
    //2级
    LabInspectItemDomain findByItemNameAndItemParentIdAndItemCategory(String name,String parentId,String category);
    LabInspectItemDomain findByItemNameAndItemParentIdAndItemLevel(String name,String parentId,String level);
    //3级
    LabInspectItemDomain findByItemNameAndItemParentId(String name,String parentId);

    List<LabInspectItemDomain> findByItemParentId(String id);
    List<LabInspectItemDomain> findByItemSubcategory(String[] subcategory);


    List<LabInspectItemDomain> findByItemLevel(String level);
}
